package net.fireox.oa.comm.rtc.store;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import javax.servlet.AsyncContext;

public class RTCConnectionStore {
	
	private static Map<String, AsyncContext> store = new ConcurrentHashMap<String, AsyncContext>();
	
	public static void put(String key, AsyncContext context){
		store.put(key, context);
	}
	
	public static AsyncContext poll(String key){
		
		AsyncContext context = store.get(key);
		
		store.remove(key);
		
		return context;
	}
}
